package com.letao.portal.controller;

import com.letao.portal.service.ContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2017/1/18.
 */
@Controller
public class ContentADController {
    @Autowired
    private ContentService contentService;

    @RequestMapping("/index")
    public String getADList(Model model){
        String list = contentService.getAdContentList();
        model.addAttribute("ad1", list);
        return "index";
    }

}
